package com.web.portal.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.util.Date;

/**
 * 用户
 */
@Data
@TableName("tb_user")
@ApiModel(description = "User")
public class PortalUser {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    @TableField("user_code")
    private String userCode;
    @TableField("name")
    private String name;
    @TableField("user_name")
    private String userName;
    @TableField("password")
    private String password;
    @TableField("salt")
    private String salt;
    @TableField("roles")
    private String roles;
    @TableField("avatar")
    private String avatar;
    @TableField("mobile")
    private String mobile;
    @TableField("sign")
    private String sign;
    @TableField("state")
    private String state = "1";
    @TableField("reg_ip")
    private String regIp;
    @TableField("login_ip")
    private String loginIp;
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @TableField("start_year")
    private Date startYear;
    @TableField("sex")
    private String sex;
    @TableField("major")
    private String major;
    @TableLogic
    @TableField(value = "is_delete", fill = FieldFill.INSERT)
    private String isDelete;
}
